package com.itheima.object;

public class PhoneTest {
    public static void main(String[] args) {
        Phone p = new Phone();
        p.brand = "iphone";
        p.price = 9000;

        System.out.println(p.brand+"..."+p.price);
        p.call("张三");
        p.sendMessage();

        Phone p1 = new Phone();
        p1.call("李四");
        System.out.println(p1.price); // 0

        Phone p2 = p;
        p2.price = 8000;
        System.out.println("p.price-->"+p.price);
        System.out.println("p2.price-->"+p2.price);
    }
}
